package top.saycode.schedule.base.model;

import lombok.Getter;
import lombok.Setter;
import top.saycode.schedule.base.common.Show;
import top.saycode.schedule.base.common.TaskStatus;
import top.saycode.schedule.base.common.TaskUnit;

import java.time.LocalDateTime;

@Getter
@Setter
public class TaskDO extends LiteDO {

    @Show(false)
    private int id;

    private String name;

    private String planedTime;

    private TaskUnit unit;

    @Show(false)
    private Long timeout;

    @Show(false)
    private Integer timoutMaxRepeat;

    private LocalDateTime nextScheduled;

    @Show(false)
    private String exec;

    @Show(false)
    private LocalDateTime createTime;

    @Show(false)
    private LocalDateTime updateTime;

    private TaskStatus status;

    @Show(false)
    private String description;

}
